{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "known-breed",
   "metadata": {},
   "source": [
    "## 1 介绍"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## ⚠️这个部分在原来的代码中应该没有！"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "transsexual-giving",
   "metadata": {},
   "source": [
    "## 2 特征优化"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "preceding-thumbnail",
   "metadata": {},
   "source": [
    "### 2.0 准备阶段\n",
    "\n",
    "#### 2.0.1 导入必要的包和库"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "infrared-connecticut",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ordinary-victim",
   "metadata": {},
   "source": [
    "### 2.1 训练集特征"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "furnished-mustang",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": "[]\n"
    }
   ],
   "source": [
    "# round 1\n",
    "# 样本ID交集为[]\n",
    "test_path_a='../../datasets/round1/round1_ijcai_18_test_a_20180301.txt'\n",
    "test_path_b='../../datasets/round1/round1_ijcai_18_test_b_20180418.txt'\n",
    "# cut round1\n",
    "# 样本ID交集为[]\n",
    "test_path_a_1='../../datasets/cut/round1/round1_ijcai_18_test_a_20180301.txt'\n",
    "test_path_b_1='../../datasets/cut/round1/round1_ijcai_18_test_b_20180418.txt'\n",
    "# cut round2\n",
    "# 样本ID交集为[]\n",
    "test_path_a_2='../../datasets/cut/round2/round2_test_a.txt'\n",
    "test_path_b_2='../../datasets/cut/round2/round2_test_b.txt'\n",
    "\n",
    "data1s = pd.read_csv(test_path_a_2, sep=' ')['instance_id']\n",
    "data2s = pd.read_csv(test_path_b_2, sep=' ')['instance_id']\n",
    "\n",
    "print(list(set(data1s).intersection(set(data2s))))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "focused-prospect",
   "metadata": {},
   "source": [
    "### 2.2 测试集特征"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ecological-street",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.9-final"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}